package models

type UserInfo struct {
	Id      int    `gorm:"primaryKey;autoIncrement;column:id"`
	Email   string `gorm:"not null;size:50;unique;column:email"`
	Picture string `gorm:"not null;size:50;column:picture"`
}

func NewUserInfo(userId int) *UserInfo {
	return &UserInfo{Id: userId}
}

func (u *UserInfo) TableName() string {
	return "user_info"
}
